/**
 * 导入机构和权限数据选择面板
 */
Ext.namespace("Ext.ux.config");
 
Ext.ux.config.ImportDemoDataPanel = Ext.extend(Ext.ux.Wiz.Card, {

 	wizardWin: null,
 	monitorValid: true, 
	labelAlign: 'right',
	labelWidth: 180,
	
	initComponent: function(){
		Ext.ux.config.ImportDemoDataPanel.superclass.initComponent.call(this);

		var items = [{ 
			xtype: 'radiogroup',
			height: 40,
	        fieldLabel: '是否导入机构数据',
	        itemCls: 'x-check-group-alt',
	        columns: [80, 80],
	        items: [
	        	{boxLabel: '是', name: 'isImportOrg', inputValue: 1, checked: true},
	        	{boxLabel: '否', name: 'isImportOrg', inputValue: 2}
			]
		},{ 
			xtype: 'radiogroup',
			height: 40,
			fieldLabel: '是否导入权限数据',
			itemCls: 'x-check-group-alt',
			columns: [80, 80],
			items: [
				{boxLabel: '是', name: 'isImportRight', inputValue: 1, checked: true},
				{boxLabel: '否', name: 'isImportRight', inputValue: 2}
			]}
		];   
	
		this.add(items);
	},
	
	getIsImportOrg: function(){
		var inputValue = this.form.getValues(true);
		return (inputValue.indexOf('isImportOrg=1') >= 0) ;
	},
	
	getIsImportRight: function(){
		var inputValue = this.form.getValues(true);
		return (inputValue.indexOf('isImportRight=1') >= 0) ;
	}
 });